package com.it.biz.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.it.biz.StudentBiz;
import com.it.dao.mapper.StudentMapper;
import com.it.pojo.Student;
import com.it.pojo.StudentExample;
import com.jkoss.tool.Page;
@Service("StudentService")
public class StudentBizImp implements StudentBiz{
	@Resource 
	private StudentMapper StudentDao;
	//
	@Override
	public List<Student> selectByExample(StudentExample example) {
		
		return StudentDao.selectByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer studentid) {
		
		return StudentDao.deleteByPrimaryKey(studentid);
	}

	@Override
	public List<Student> findAll(Page page) {
		
		return StudentDao.findAll(page);
	}

	@Override
	public int insert(Student record) {
		// TODO 自动生成的方法存根
		return StudentDao.insert(record);
	}

	@Override
	public int updateByPrimaryKey(Student record) {
		// TODO 自动生成的方法存根
		return StudentDao.updateByPrimaryKey(record);
	}

	@Override
	public Student selectByPrimaryKey(Integer studentid) {
		// TODO 自动生成的方法存根
		return StudentDao.selectByPrimaryKey(studentid);
	}
	
}
